// This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.

const { remote, ipcRenderer } = window.require('electron');
const container = document.querySelector('#container');
const remoteObj = ipcRenderer.sendSync('tmTest');
container.innerText = `Before modified\n${JSON.stringify(remoteObj, null, '    ')}`;
ipcRenderer.on('modified', () => {
	container.innerText = `${container.innerText}\n
After modified\n${JSON.stringify(remoteObj, null, '    ')}`;
});
